﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RockScissorPaper
{
    public enum Result
    {
        玩家赢,
        电脑赢,
        平手
    }

    public enum First
    {
        石头 = 1,
        剪刀 = 2,
        布 = 3
    }
   public   class Player
    {
        public First ShowFirst(string fist)
        {
            //根据用户输入来出拳
            switch (fist)
            {
                case "石头":
                    return First.石头;
                case "剪刀":
                    return First.剪刀;
                case "布":
                    return First.布;
                default:
                    return First.布;
            }
            
        }
        
    }
}
